Unit Testing with Déjà-Vu Objects
نویسنده
چکیده
In this paper we introduce a new unit test technique called déjà-vu object. Déjà-vu objects replace real objects used by classes under test, allowing the execution of isolated unit tests. A déjà-vu object is able to observe and record the behaviour of a real object during real sessions, and to replace it during unit tests, returning previously recorded results. Consequently déjà-vu object technique can be useful when a bottom-up development and testing strategy is adopted. In this case déjà-vu objects can increase test portability and test source code readability. At the same time they can reduce the time spent by programmers to develop test code and the risk of incompatibility during the switching between déjà-vu and production code. Keywords—Bottom-up testing approach, integration test, test portability, unit test.
منابع مشابه
Understanding Déjà vu: Explanations, Mechanisms and the ‘normal’ kind of déjà vu (Part 2)
Submit Manuscript | http://medcraveonline.com J Psychol Clin Psychiatry 2015, 2(6): 00112 To understand the variability of the explanations, we should remember that until 1979, a major research and classification problem was the inconsistency in eliciting déjà vu: Consequently, data interpretation became difficult. At that time, there were only the 11 kinds of déjà experiences described earlier...
متن کاملThe special subtypes of déjà vu (Part 3)
Subjective psi experience (SPE) is a non-prejudicial term allowing non-prejudicial analysis. The qualitative nosological subtype of SPE déjà vu involves distinct qualities: This grows, is intense, often frequent, and specifically involves time distortions past and future with predictive elements and a specific knowing.
متن کاملDigging into Déjà Vu: Recent Research on Possible Mechanisms
The déjà vu experience has piqued the interest of philosophers and physicians for over 150 years, and has recently begun to connect to research on fundamental cognitive mechanisms. Following a brief description of the nature of this
متن کاملAn Overview Perspective on what Déjà Vu is (Part 1)
Submit Manuscript | http://medcraveonline.com J Psychol Clin Psychiatry 2015, 2(6): 00036 experiences; Déjà subtypes; Déjà terminology; Déjà vu; déjà vu books; History; Memory; Modern era; Multidimensional scaling; Neppe; Phenomenology; psi; Psychodynamic; Psychotic Déjà Vu; Redintegration; Restricted paramnesia; Schizophrenic Déjà Vu; SPE Déjà Vu; Subjective psi experience Déjà Vu; Temporal Lo...
متن کاملLeadership Déjà Vu All over Again
Much leadership literature neglects its historical-contextual antecedents and as a result overemphasizes zeitgeist, or tenor of the time’s social forces. This neglect impedes leadership research by encouraging academic amnesia and promoting a strong feeling of research déjà vu among many researchers and practitioners. In this article, we develop a leadership historical-contextual superstructure...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012